﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class ErrorCodes
    {
        public string GetErrorCodes(int Code)
        {
            switch(Code)
            {
                case 200: return "Username is reserved";
                case 201: return "Password invalid";
                case 202: return "Email address invalid"; 
                case 203: return "User is already logged in";
                case 204: return "This game is already started";
                case 205: return "Message invalid";
                case 206: return "Step is invalid";
                case 207: return "Game is over";
                case 208: return "Database is not accessible";
                case 209: return "Server is down";
                case 210: return "It's not your turn!";
                case 211: return "Guest cannot start new game!";
                case 212: return "There is no new message";
                case 213: return "You cannot do this action in this game";
                case 214: return "ELO level is not the same";
                case 215: return "There is no game currently which requires the same ELO level";
                case 216: return "You are already in a game";
                case 217: return "The username is invalid";
                default: return "Unknown code";
            }
        }
    }
}
